/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class Display {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080053';
    }

    get categoryName() {
        return '\u5c4f\u5e55';
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'peH32fJC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTextSize(params) {
        return command({
            method: 'getTextSize',
            methodId: 'ppAXNOyA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWordSpacing(params) {
        return command({
            method: 'getWordSpacing',
            methodId: 'pUPQZjPr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLineSpacing(params) {
        return command({
            method: 'getLineSpacing',
            methodId: 'pZguA3nd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pGoxwGRZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setImage(params) {
        return command({
            method: 'setImage',
            methodId: 'p1vZ5xxL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setText(params) {
        return command({
            method: 'setText',
            methodId: 'pDrhMbZS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTextColor(params) {
        return command({
            method: 'setTextColor',
            methodId: 'pgh0sqhV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTextSize(params) {
        return command({
            method: 'setTextSize',
            methodId: 'phEqck03',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWordSpacing(params) {
        return command({
            method: 'setWordSpacing',
            methodId: 'ptRSJ1cG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLineSpacing(params) {
        return command({
            method: 'setLineSpacing',
            methodId: 'pdNCvsvx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGif(params) {
        return command({
            method: 'setGif',
            methodId: 'p3deyufb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStartPosition(params) {
        return command({
            method: 'setStartPosition',
            methodId: 'pkpDf4lq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default Display;
